package com.glw.sso.platform.common.exception;


import com.glw.sso.platform.common.annotation.ErrorMessage;

public class BusinessException extends BaseException {

    public static class Code {

        @ErrorMessage("[{0}]登录失败")
        public static final int LOGIN_FAIL = 2001;

    }

    public BusinessException(int code, Object[] args) {
        super(code, args);
    }

    public static BusinessException create(int code, Object... args) {
        return new BusinessException(code, args);
    }

    @Override
    public Class getCodeClass() {
        return Code.class;
    }
}
